package com.infore.common.model.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.infore.common.base.BaseModel;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.annotations.TableId;

/**
 * <p>
 *
 * </p>
 *
 * @author shaolay
 * @since 2022-12-13
 */
@TableName("stat_task_source")
public class StatTaskSource extends BaseModel<StatTaskSource> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;
    /**
     * 统计任务id
     */
    @TableField("task_id")
    private Integer taskId;
    /**
     * 数据源id
     */
    @TableField("t_base_datasource_id")
    private Integer tBaseDatasourceId;
    /**
     * 表名
     */
    @TableField("table_name")
    private String tableName;
    /**
     * 数据源类型
     */
    @TableField("source_type")
    private String sourceType;


    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getTaskId() {
        return taskId;
    }

    public void setTaskId(Integer taskId) {
        this.taskId = taskId;
    }

    public Integer gettBaseDatasourceId() {
        return tBaseDatasourceId;
    }

    public void settBaseDatasourceId(Integer tBaseDatasourceId) {
        this.tBaseDatasourceId = tBaseDatasourceId;
    }

    public String getTableName() {
        return tableName;
    }

    public void setTableName(String tableName) {
        this.tableName = tableName;
    }

    public String getSourceType() {
        return sourceType;
    }

    public void setSourceType(String sourceType) {
        this.sourceType = sourceType;
    }

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

    @Override
    public String toString() {
        return "StatTaskSource{" + ", id=" + id + ", taskId=" + taskId + ", tBaseDatasourceId=" + tBaseDatasourceId + ", tableName=" + tableName + ", sourceType=" + sourceType + "}";
    }
}
